<?php

namespace App\Http\Controllers\Mp;

use App\Http\Controllers\Controller;
use App\Model\Feedback;
use App\Model\QA;
use App\Utils\Result;
use App\Utils\Token;
use Illuminate\Http\Request;

class FeedbackController extends Controller
{
    public function feedback(Request $request)
    {
        $data = $request->all();
        $data['user_id'] = Token::getUser()->id;

        Feedback::create($data);

        return Result::success();
    }
}
